package co.sugon.log.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.ResourceBundle;

/**
 * 系统资源加载类
 *
 * @author
 */
public class ResourceLoader {

	/**
	 * 获取用户定义参数
	 *
	 * @param key
	 * @return
	 */
	public static String getExtraProperties(String key) {
		String getValue = "";
		if (StringUtils.isNotBlank(key)) {
			ResourceBundle bundle = ResourceBundle.getBundle("resources");
			try {
				getValue = bundle.getString(key);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return getValue;
	}

}
